stekloff@elm3b216.beaverton.ibm.com [Fri, 16 Dec 2005 11:50:27 +0000 (11:50 +0000)]
Added information for running xm-test in HVM / VMX mode.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
nivedita@hex [Fri, 16 Dec 2005 11:46:58 +0000 (11:46 +0000)]
Xend http access turned off by default.
Signed-off-by: Nivedita Singhvi (niv@us.ibm.com)
kaf24@firebug.cl.cam.ac.uk [Fri, 16 Dec 2005 03:57:27 +0000 (04:57 +0100)]
Slight fix to BIOS e820 bug workaround. Remove the check
for whether e820 list is below 1MB: all bootloaders place
it below 1MB so teh check is ineffective and, in any case,
SYSLINUX has the same issue as GRUB (does not pre-initialize
the memory area that e820 function writes to).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 16 Dec 2005 03:11:41 +0000 (04:11 +0100)]
Work around a nasty BIOS/GRUB bug which causes fields in
the e820 map to not be initialized to zero when they should be.
Signed-off-by: Keir Fraser <keir@xensource.com>
chris@ubuntu.eng.hq.xensource.com [Thu, 15 Dec 2005 23:17:13 +0000 (16:17 -0700)]
Add and use write_ldt_entry, as seen in later linux kernel versions.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Dec 2005 20:50:12 +0000 (21:50 +0100)]
Add debugging flag for domains to make domu debugging a run-time option
Signed-off-by: Kip Macy kmacy@fsmware.ckm
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Dec 2005 20:02:21 +0000 (21:02 +0100)]
Add MP debug support to gdbserver.
Signed-off-by: Kip Macy <kip.macy@gmail.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Dec 2005 19:46:08 +0000 (20:46 +0100)]
Remove unnecessary statement in evtchn_do_upcall.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Dec 2005 19:43:44 +0000 (20:43 +0100)]
Unmap io shared page only if it is properly initialized.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Dec 2005 19:42:09 +0000 (20:42 +0100)]
Check for existence of VLAPIC before relinquishing it,
or a vmx guest can die very early.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Dec 2005 19:38:44 +0000 (20:38 +0100)]
Clear all shadow caches when return to real mode from protect mode.
So that, if OS modify some page tables in real mode and then
return to protect mode, no outdated shadow table be used because
out of sync machanism do not work in real mode.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Dec 2005 19:35:32 +0000 (20:35 +0100)]
vmx_assist xen interface header is BSD-licensed.
Signed-off-by: Leendert Van Doorn <leendert@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 15 Dec 2005 18:38:49 +0000 (18:38 +0000)]
Split talk_to_otherend into two pieces, one for getting the otherend details,
and one for registering the watch on the otherend's path. This means that we
get the fix intended by xen-unstable changeset 8370:
39a616126104 (i.e. we only
register the watch once drv->probe() has succeeded), but without breaking block
devices.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 15 Dec 2005 13:55:05 +0000 (13:55 +0000)]
Replace calls to deprecated xm set-vcpus with calls to new shiny xm vcpu-set.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 15 Dec 2005 13:49:19 +0000 (13:49 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Thu, 15 Dec 2005 13:49:07 +0000 (13:49 +0000)]
Fix block_attach_shared tests. When the sharing check succeeds, the domain
is created but left paused, so it is necessary to destroy the domain afterwards,
whether the test succeeded or failed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 15 Dec 2005 13:39:16 +0000 (13:39 +0000)]
Someone seems to have gotten carried away with cut & paste, and then
didn't test.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
emellor@leeni.uk.xensource.com [Thu, 15 Dec 2005 13:38:16 +0000 (13:38 +0000)]
Put watch on device node only if probe was sucessful.
This fix segfault on netfront when creating more than three network devices on
domU.
Signed-off-by: Murillo F. Bernardes <mfb@br.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Dec 2005 18:47:16 +0000 (19:47 +0100)]
Fix the issue when guest OS clear TS bit by mov to cr0 instead of
clts instruction for floating point context save and restore.
clts instruction is already handled in vmx exit handler while
vmx_set_cr0 has not handled it yet.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Dec 2005 18:44:42 +0000 (19:44 +0100)]
LAPIC model is different on x86 and ia64, so make irq-pending
notification arch specific.
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
Signed-off-by Yunhong Jiang <Yunhong.jiang@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Dec 2005 18:41:06 +0000 (19:41 +0100)]
Give the xencons tty driver a proper name.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Dec 2005 18:35:38 +0000 (19:35 +0100)]
Prevent new potential features from being exposed to the
guests when not virtualized properly. Guests can attempt to set the
control registers, etc. (and get #GP and panic) if they are aware of the
new feature and the cpuid says it's available.
Signed-off-by: <jun.nakajima@intel.com>
emellor@leeni.uk.xensource.com [Wed, 14 Dec 2005 12:52:02 +0000 (12:52 +0000)]
Fix calls to test-gcc-flag, to match previous changeset.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 14 Dec 2005 12:22:24 +0000 (12:22 +0000)]
HOSTCC should be used to set HOSTCFLAGS instead of CC.
There is a case where HOSTCC doesn't accept -Wdeclaration-after-statement,
while CC does. It results in a compilation error.
This patch fixes it
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
emellor@leeni.uk.xensource.com [Wed, 14 Dec 2005 12:07:26 +0000 (12:07 +0000)]
Ignore .flc, .patch, .orig, and .rej files, and TAGS in the top level.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 14 Dec 2005 12:04:40 +0000 (12:04 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Wed, 14 Dec 2005 12:03:40 +0000 (12:03 +0000)]
Added error message if the user attempts to shutdown Domain-0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
stekloff@elm3b216.beaverton.ibm.com [Wed, 14 Dec 2005 11:59:19 +0000 (11:59 +0000)]
Adding SKIP() to tests that aren't supported for VMX domains.
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
emellor@leeni.uk.xensource.com [Wed, 14 Dec 2005 11:56:25 +0000 (11:56 +0000)]
Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists before
trying to save into it.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 14 Dec 2005 11:54:39 +0000 (11:54 +0000)]
Added a stress test for the Xenstore-Python interface layer.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
chris@ubuntu.eng.hq.xensource.com [Wed, 14 Dec 2005 02:11:27 +0000 (19:11 -0700)]
Revert changes slipped in during merge.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
chris@ubuntu.eng.hq.xensource.com [Wed, 14 Dec 2005 02:05:57 +0000 (19:05 -0700)]
merge?
chris@ubuntu.eng.hq.xensource.com [Wed, 14 Dec 2005 02:04:14 +0000 (19:04 -0700)]
Make set_pte_at and set_pte_at_sync macros instead of inline functions.
This avoids having to include sched.h to get a definition of init_mm.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Dec 2005 00:25:07 +0000 (01:25 +0100)]
Clarify the BSD-ish licenses for the blk and net front-end drivers so
that it is clear they are fully GPL-compatible and satisfy the free
software definitions in include/linux/module.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Stephen Tweedie <sct@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 21:12:02 +0000 (22:12 +0100)]
Set kcons index to -1 (i.e., acquire all device indexes).
This reverts part of the previous changeset, which prevented
console=tty0 from doing the obvious thing in a domU guest
(i.e., send output on the virtual console). This is because
the tty index ends up being 1.
I don't think setting the index to other than -1 really
buys us anything anyway. Any other driver that specifies
a name that conflicts with us will almost certainly set their
index to -1, so we cannot avoid conflicts by choosing a
more restrictive (singleton) value.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 21:05:18 +0000 (22:05 +0100)]
Most drivers have their own range of devices they claim and the tty
index is identical to the device file index. For us, the tty index is
always zero regardless of the device file index.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 18:20:29 +0000 (19:20 +0100)]
Fix unmask_evtchn() when the port is bound to a different
VCPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 18:08:26 +0000 (18:08 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 18:08:17 +0000 (18:08 +0000)]
Added unit test for VMX configuration files.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 18:07:51 +0000 (18:07 +0000)]
When we see a httplib.BadStatusLine, sleep 5 seconds and then retry. This
happens when Xend crashes, so retrying once allows it to restart and recover.
If we see Xend crash twice, we give up, but throw a more polite exception than
the BadStatusLine splat that we got previously.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 18:06:03 +0000 (18:06 +0000)]
Resurrect vifname xm create vif option support. This was present in earlier
versions of Xen, and allows one to name a vif when it is created. This is
useful for integration with IP accounting packages, for example.
Closes bug #439.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
danms@us.ibm.com [Tue, 13 Dec 2005 18:00:50 +0000 (18:00 +0000)]
Grab the test ID from the report submission response and provide a link
to the user's test report
Signed-off-by: Dan Smith <danms@us.ibm.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 17:31:35 +0000 (17:31 +0000)]
Fix reference to HttpXendClientProtocol. This was previously referring to the
abstract base class, which was never going to work. (This is debugging code
only, so I presume that no-one has used it for a long time, but it's doing no
harm hanging around.)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 16:26:33 +0000 (16:26 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 16:26:24 +0000 (16:26 +0000)]
Change the way domain configuration is handled in xm-test.
This will simplify the way we differentiate between HV and PV domains,
as well as make it easier to run normal tests in either HV or PV mode.
This patch has been modified by Ewan Mellor, to match his recent changes to
remove the nics= configuration option.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 16:15:26 +0000 (17:15 +0100)]
Tony found a direct userspace access with his unit test for
grant_table.c. We access "uop->frame_list" (a pointer) directly, rather
than using "op.frame_list".
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 16:12:59 +0000 (17:12 +0100)]
A new ACM security tool providing support to aid in the
creation/generation of the XML security policy files for the Xen ACM
security architecture. It is a python- based, web-based tool named
xensec_gen that allows users to create or modify XML policy files
through a browser. The resulting XML policy files can then be copied
or moved to the appropriate location in the /etc/xen/acm-security
directory structure in order to be translated into binary and used
within the Xen system.
Signed-off-by: Tom Lendacky <toml@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 16:08:05 +0000 (17:08 +0100)]
Support VMX guest accesses to IA32_TIME_STAMP_COUNTER MSR.
Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 16:02:55 +0000 (17:02 +0100)]
Fix shadow_guest32 depenency in Xen/x86 Makefile.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 16:01:09 +0000 (17:01 +0100)]
Add an option for device model to disable key repeat.
On slow network, when creating a vmx guest remotely,
the key repeat feature may make it hard to even type
the user name and password to login in to guest OS.
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 10:57:18 +0000 (10:57 +0000)]
Merged.
Xiaofeng Ling [Tue, 13 Dec 2005 10:57:04 +0000 (10:57 +0000)]
change the NIC configuration accordingly after remove "nics=n"
otherwise, nics=-1 will be passed to device model and cause device
model exiting.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Dec 2005 02:47:47 +0000 (03:47 +0100)]
Fix rx buffer allocation in netfront. The final allocation size
was ending up bigger than PAGE_SIZE.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 00:56:50 +0000 (00:56 +0000)]
Match previous changeset removing nics option.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 00:16:02 +0000 (00:16 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 00:15:53 +0000 (00:15 +0000)]
Deprecate the nics option from the xm create configuration. Instead, we use the
entries in vif to guide the configuration. This is much less confusing.
Closes bug #440.
Change the example configuration files to match. Also change them to use the
XenSource OUI in the MAC addresses. Also change xm-test to match.
Remove the obsolete ipaddr configuration entry, and the backend_mac vif config
option.
Remove the preprocess_vifs function, folding it into the configure_vifs
function, and creating a simple comma_sep_kv_to_dict helper.
Remove the configure_vfr method, as it is unused.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 13 Dec 2005 00:10:19 +0000 (00:10 +0000)]
Don't try and close the pipe to the grandparent if it has already been closed
(i.e. we have restarted Xend).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
rread@ubuntu.eng.hq.xensource.com [Mon, 12 Dec 2005 18:45:53 +0000 (11:45 -0700)]
Increase the default ramdisk size to 16384 to support SLES initrds.
emellor@leeni.uk.xensource.com [Mon, 12 Dec 2005 17:13:38 +0000 (17:13 +0000)]
Read the domid and vifid from the store, rather than horribly slicing up the
store path.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 12 Dec 2005 16:48:24 +0000 (16:48 +0000)]
Added xend-relocation-hosts-allow option.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 12 Dec 2005 16:44:27 +0000 (16:44 +0000)]
Squelch error message from iptables (we log this later if necessary).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 12 Dec 2005 16:43:48 +0000 (16:43 +0000)]
Added a hosts-allow facility to TCP connections, which allows us to restrict
the acceptable connections based upon a regular expression comparison with the
FQDN or the IP address.
Use the hosts-allow facility to restrict access to the relocation socket. This
adds the configuration option xend-relocation-hosts-allow, which takes a
space-separated sequence of regular expressions.
Pass the protocol class instance through to SocketServerConnection, rather than
a new instance of that class. This means that the new instance need not be
passed through SocketListener.acceptConnection.
Make the SocketServerConnection and SocketListener classes start their
corresponding threads and open their sockets (in the case of SocketListener)
automatically. This means that callers do not need to save an instance locally,
just to call run() or listen() on it. This also means that listenTCP and
listenUnix can go -- simply creating a TCPListener or UnixListener instance is
sufficient.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 12 Dec 2005 16:32:50 +0000 (16:32 +0000)]
Minor tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 12 Dec 2005 16:32:19 +0000 (16:32 +0000)]
Make from_string('') return []. This means that it is not necessary for our
callers to special-case this value -- the [] is a valid sxp.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 12 Dec 2005 16:24:32 +0000 (16:24 +0000)]
Minor import tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Anthony Liguori [Mon, 12 Dec 2005 15:11:13 +0000 (15:11 +0000)]
Make sure to fork again after setsid() so that child cannot regain CTTY.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
emellor@leeni.uk.xensource.com [Mon, 12 Dec 2005 11:15:29 +0000 (11:15 +0000)]
Remove unused netmask,network etc. These were used when we called ifconfig to
set up the networking, but now that we use ip directly, we don't need them, and
they were in any case broken when the ip address was specified without a suffix.
This work is by James Dykman <dykman@us.ibm.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 10 Dec 2005 23:20:08 +0000 (00:20 +0100)]
Rename QEMU device model log file from /tmp/qemu.log to
/var/log/qemu-dm.<pid>.log.
Also redirect stderr to this log file.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 10 Dec 2005 23:17:11 +0000 (00:17 +0100)]
VMX domain should call domain_crash_synchronous instead of domain_crash.
Since domain_crash will return at last, and I watched system crash after
its return.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 10 Dec 2005 23:16:26 +0000 (00:16 +0100)]
Fix indentation in a few places.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 10 Dec 2005 23:11:44 +0000 (00:11 +0100)]
Fix ia64 blkback build.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 10 Dec 2005 15:21:43 +0000 (16:21 +0100)]
Initilaise new cpu's processed-time value from cpu0's
timestamp. The new cpu's timestamp is not initialised yet,
so should not be used.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 10 Dec 2005 15:07:03 +0000 (16:07 +0100)]
Remove GPL from a couple of Xen public interfaces. There are
a few more files to be done, after consulting their authors.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 10 Dec 2005 14:57:11 +0000 (15:57 +0100)]
Update "make uninstall" to reflect new files.
Signed-off-by: Natasha Jarymowycz <natasha@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 10 Dec 2005 14:54:27 +0000 (15:54 +0100)]
In all cases in dom0_ops.c, return EFAULT if copy_user
fails.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vhanquez@kneesa.uk.xensource.com [Sat, 10 Dec 2005 00:11:33 +0000 (00:11 +0000)]
Allows a 'make prep-kernels' which sets up the kernel directories, allowing
certain types of test automation to be done more easily.
Signed-off-by: Paul Larson <pl@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 11:05:06 +0000 (11:05 +0000)]
Merged.
stekloff@elm3b216.beaverton.ibm.com [Fri, 9 Dec 2005 11:04:55 +0000 (11:04 +0000)]
Add initial VMX support to xm-test:
1) Added script create_disk_image to make full virt image
2) Changed XenDomain.py to build separate XmTestDomain object
for vmx guests (this structure will need to be cleaned up)
3) Changed ramdisk Makefile.am to create disk.img if vmx configured
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:51:35 +0000 (10:51 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:51:20 +0000 (10:51 +0000)]
Use new do_without_error function to squelch the error when closing down the
interface.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:50:49 +0000 (10:50 +0000)]
Use new do_without_error function to squelch the errors when closing down an
interface.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:50:26 +0000 (10:50 +0000)]
Added do_without_error function, and squelch the error from mkdir when trying
to create the lock directory.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:49:29 +0000 (10:49 +0000)]
Add one more fork to the Xend start-up process, this time with the parent
staying alive to watch the child. If the child crashes, then the parent
starts another one in its place. This provides robustness in the face of
crashes like one currently tracked as bug #411.
Tidy up chunks of SrvDaemon.py on the way past.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:40:41 +0000 (10:40 +0000)]
Two domUs, ping from one to the other
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:40:28 +0000 (10:40 +0000)]
Single domU, ping to dom0.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:40:00 +0000 (10:40 +0000)]
Single domU, ping loopback and the local eth0.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:39:31 +0000 (10:39 +0000)]
Some network test utilities for the library:
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 9 Dec 2005 10:39:16 +0000 (10:39 +0000)]
Makefile plumbing for new network tests.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Dec 2005 08:29:52 +0000 (09:29 +0100)]
Fix blkback to build on ia64.
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
emellor@leeni.uk.xensource.com [Thu, 8 Dec 2005 18:21:05 +0000 (18:21 +0000)]
The attached patch makes a couple of changes to the ACM security tools
and installation. Particularly it does the following:
- the Makefile installs the ACM security-related tools
into /etc/xen/acm-security
- improves and cleans up some of the tools
- updates the documentation
Signed-off-by: Tom Lendacky <toml@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
emellor@leeni.uk.xensource.com [Thu, 8 Dec 2005 18:19:24 +0000 (18:19 +0000)]
The attached patch uncouples the device id used inside XenD from the
instance number of the vTPM.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
emellor@leeni.uk.xensource.com [Thu, 8 Dec 2005 18:17:59 +0000 (18:17 +0000)]
Looks like someone merged and moved the pincpu operation to after the
memory reservation and didn't read the comments I left in the code:
# repin domain vcpus if a restricted cpus list is provided
# this is done prior to memory allocation to aide in memory
# distribution for NUMA systems.
This patch moves the pincpu op back to where it was.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
emellor@leeni.uk.xensource.com [Thu, 8 Dec 2005 16:17:53 +0000 (16:17 +0000)]
Detach Xend from terminal, courtesy of Horms <horms@verge.net.au>.
* For setsid to effectively detach a process from the terminal,
the following needs to occur:
fork () Return control to the shell
setsid () New session with no controlling terminal
fork () The session leader (parent) exits and thus
the resulting child process can never regain the terminal
This patch adds the second fork
* The call to self.daemonize(), which now forks, is moved to
run before self.tracing(), as now that it actually disconnects
from the terminal, and thus the prevailing process, the trace
loses the processes created in self.run().
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 8 Dec 2005 16:11:48 +0000 (16:11 +0000)]
Flush the addresses from the new eth0 before trying to add the new address to
it, when using ip on the kernel command line and not using the installed ifup /
ifdown. This stops the script bailing out if there is already an address
attached to that device, which was leaving the device without routing (since
this has already been removed).
Fix the stop action under the same circumstances. No attempt was made to
restore the kernel command line details to the interfaces if the ifdown failed
in that case.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Dec 2005 15:58:41 +0000 (16:58 +0100)]
Allocate separate vm areas for rx and tx rings in netback
driver as part of preparation for ia64 support.
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
emellor@leeni.uk.xensource.com [Thu, 8 Dec 2005 15:54:35 +0000 (15:54 +0000)]
Fix ip_of to cope with interfaces with multiple addresses, courtesy of
Adam Heath <doogie@brainfood.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Dec 2005 15:53:53 +0000 (16:53 +0100)]
Support CFQ scheduling of guest block requests by creating
a kernel thread per blkif connection. General cleanup work
in blkback driver.
Signed-off-by: Gerd Knorr <kraxel@suse.de>
emellor@leeni.uk.xensource.com [Thu, 8 Dec 2005 15:04:41 +0000 (15:04 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Thu, 8 Dec 2005 15:04:31 +0000 (15:04 +0000)]
Strip huge piles of cruft from the connection infrastructure. We now actually
block inside accept rather than using select to poll and then calling accept
regardless of the outcome of the select call, and then failing because the
socket is non-blocking.
SocketClientConnection, SocketConnector, TCPClientConnection, TCPConnector,
connectTCP, UnixClientConnection, UnixConnector, connectUnix have gone.
loseConnection and stopListening and closeSocket (where they are needed) are
now called close. startListening is now called listen.
Closes bug #379.
Relieves a weight from the shoulders of the universe.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Dec 2005 14:33:10 +0000 (15:33 +0100)]
Make balloon driver arch-neutral.
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>